package com.aaa.docter.controller.api;

import com.aaa.docter.service.CareOrderService;
import com.aaa.entity.CareOrder;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/doctor/newcare")
public class ApiCareOrderController {
    @Autowired
    private CareOrderService careOrderService;

//    查询药品处方信息添加  --添加【药用】处方,添加检查处方
//http://localhost:8871/doctor/newcare/queryCareOrdersByChId/CH59823971096756224
    @GetMapping("/queryCareOrdersByChId/{chId}")
    public Result<List<CareOrder>> queryCareOrdersByChId(@PathVariable String chId){
        return careOrderService.queryCareOrdersByChId(chId);
    }

}
